<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2020/1/21
  Time: 14:33
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>日期组件</title>
    <link rel="stylesheet" href="${pageContext.request.contextPath}/layui/css/layui.css">
    <script src="${pageContext.request.contextPath}/layui/layui.js"></script>
</head>
<body>
    <div class="layui-inline">
        日期<input type="text" class="layui-input" id="test1">
    </div>

    <script>
        layui.use('laydate',function () {
            var laydate = layui.laydate;
            laydate.render({
                elem:'#test1',
                trigger :'click'
            })
        })

    </script>
</body>
</html>
